package com.dragon.mmochat.message;

import com.dragon.mmochat.MmochatConstant;
import com.skymobi.buffer.SkymobiBuffer;
import com.skymobi.message.SkymobiProtocolMessage;

public class Mmochat_12_7C extends SkymobiProtocolMessage {
	int hallState;
	int drugType;
	String num;
	int roleId;

	public Mmochat_12_7C() {
		setMsgCode(MmochatConstant.MSGCODE_MMOCHAT_C_12_7);
	}

	@Override
	protected void decodeBody(SkymobiBuffer in) {
		hallState = in.getUnsignedShort();
		drugType = in.getInt();
		num = in.getPrefixedString(2);
		roleId = in.getInt();
	}

	public int getHallState() {
		return hallState;
	}

	public int getDrugType() {
		return drugType;
	}

	public String getNum() {
		return num;
	}

	public int getRoleId() {
		return roleId;
	}

}